$OpenBSD: patch-config__ml-build,v 1.2 2013/02/15 12:06:11 sthen Exp $
--- config/_ml-build.orig	Tue Feb 13 00:05:27 2007
+++ config/_ml-build	Tue Feb 12 23:18:58 2013
@@ -1,4 +1,5 @@
 #!@SHELL@
+[ -z "$SMLNJ_HOME" ] && SMLNJ_HOME=${TRUEPREFIX}/smlnj
 
 if [ x${SMLNJ_HOME} = x ] ; then
     BIN_DIR="@BINDIR@"
